<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果 - 走进汕头</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary sticky-top">
        <div class="container">
            <a class="navbar-brand d-flex align-items-center" href="index.html">
                <img src="img/logo.png" alt="走进汕头" class="navbar-logo">
                <span class="brand-text">走進汕頭</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="index.html"><i class="bi bi-house-door"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="food.html"><i class="bi bi-egg-fried"></i> 汕头美食</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="specialty.html"><i class="bi bi-shop"></i> 汕头特产</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="scenery.html"><i class="bi bi-image"></i> 汕头美景</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="history.html"><i class="bi bi-book"></i> 汕头历史</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="travel.html"><i class="bi bi-map"></i> 旅游专区</a>
                    </li>
                </ul>
                <form class="d-flex search-form">
                    <input class="form-control me-2" type="search" placeholder="搜索汕头..." id="searchInput">
                    <button class="btn btn-outline-light" type="submit"><i class="bi bi-search"></i></button>
                </form>
            </div>
        </div>
    </nav>

    <!-- 搜索结果内容 -->
    <div class="container mt-5">
        <h2 class="mb-4">搜索结果</h2>
        <div id="searchResultsContainer">
            <!-- 搜索结果将通过JavaScript动态加载 -->
        </div>
    </div>

    <!-- 页脚 -->
    <!-- 复制 index.html 中的页脚代码到这里 -->

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="js/script.js"></script>
    <script src="js/search.js"></script>
    <script>
        $(document).ready(function() {
            const urlParams = new URLSearchParams(window.location.search);
            const searchTerm = urlParams.get('q');
            
            if (searchTerm) {
                $('#searchResultsContainer').html(`
                    <div class="alert alert-info">
                        <h4>搜索关键词: "${searchTerm}"</h4>
                        <p>相关结果如下：</p>
                    </div>
                    <!-- 这里可以添加实际的搜索结果 -->
                `);
            }
        });
    </script>
</body>
</html> 